package org.fastsyncer.sdk.client;

import java.util.List;

import org.apache.http.message.BasicNameValuePair;

public interface Oauth {

	/**
	 * 刷新访问服务器时所需的Token
	 */
	abstract void refreshToken() throws IllegalArgumentException;
	
	/**
	 * 携带Token参数发送请求到服务器
	 * @param url
	 * @param params
	 * @return
	 */
    abstract String sendWithToken(String url, List<BasicNameValuePair> params);
    
}
